/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.money.biz.impl;

import com.money.biz.AdministratorBiz;
import com.money.dao.AdministratorDao;
import com.money.entity.Administrator;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 *
 * @author Eason
 */
@Service("adminBiz")
public class AdministratorBizImpl implements AdministratorBiz {
    @Resource(name = "adminDao")
    private AdministratorDao dao;


    @Override
    public Administrator getAdministrator() {
        return dao.getAdministrator(); 
    }

    @Override
    public boolean validate(Administrator admin) {
        return dao.validate(admin);
    }
}
